package com.jsptpd.smartauth.common.model;

public class RetCode {


    public static RetCode SUCCESS = new RetCode("0000", null, null);
    public static RetCode FAIL = new RetCode("9999", "请求失败", null);//请求失败
    public static RetCode FAILECHO = new RetCode("9990", "添加重复", null);//新增重复失败，数据库唯一性判断
    public static RetCode CACHEEXPIRE = new RetCode("9991", "缓存过期", null); //缓存过期
    public static RetCode CACHEINEXISTENCE = new RetCode("9992", "缓存不存在", null); //缓存不存在
    public static RetCode ENTERPRRSEFAIL = new RetCode("9993", "当前企业被关联使用，请删除关联后再尝试", null);//请求失败
    public static RetCode ADDFAILUSER = new RetCode("9994", "此用户已存在", null);//此用户已存在
    public static RetCode RELATION_DELETE_FAIL = new RetCode("9995", "删除失败，存在关联数据", null);//删除关联数据失败
    public static RetCode EXCELFAIL = new RetCode("9996", "请导入对应表格", null);//请传入正确表格
    public static RetCode AUTHFAIL = new RetCode(("9998"), "权限不足", null);
    public static RetCode reRetCode(String errorStr) {
        RetCode retCode = new RetCode("9997", errorStr, null);
        return retCode;
    }
    public static RetCode EXCELFAIL1 = new RetCode("9998", "请导入表格", null);//请导入表格




    public String status;

    public String msg;

    public String logId;


    public RetCode(String status, String msg, String logId) {
        this.status = status;
        this.msg = msg;
        this.logId = logId;
    }


    public RetCode(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }
}
